<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head th:replace="top::html" />
<title>添加对接详情</title>
<body class="fixed hold-transition skin-blue">
	<div class="wrapper">
		<div th:replace="tophtml::html"></div>
		<div th:replace="left::html"></div>
		<div class="content-wrapper">
			<section class="content-header">
				<h1>
					添加对接详情<small></small>
				</h1>
				<ol class="breadcrumb">
					<li><a href="/index"><i class="fa fa-dashboard"></i>用户中心</a></li>
					<li><a href="/person/findPersonList">专家管理</a></li>
					<li><a th:href="@{/person/findButtDetailsList(pid=${person.pid})}">专家匹配需求详情</a></li>
					<li><a th:href="@{/person/addDetailsView(pid=${de.pid})}">添加对接详情</a></li>
				</ol>
			</section>
			<section class="content container-fluid">
				<form id="form1" th:action="@{/person/addDetails}" method="post" th:object="${buttDeteils}" enctype="multipart/form-data">
					<input type="hidden" name="pid" th:value="${pid}" />
					<div th:if="${demand}">
						<div class="form-group">
							<label>需求内容</label> 
							<input type="text" class="form-control" placeholder="Enter ..." 
							       name="demandName" th:value="${demand.demandName}">
						</div>
					</div>
					<div th:if="${person}">
						<div class="form-group">
							<label>专家姓名</label> 
							<input type="text" class="form-control" placeholder="Enter ..." 
							       name="name" th:value="${person.name}">
						</div>
					</div>
					<div th:if="${demand}">
						<div class="form-group">
							<label>需求ID</label> 
							<input type="hidden" name="demandNumber" th:value="${demand.pid}" /> 
							<input type="text" class="form-control" placeholder="Enter ..." 
								   name="demandId" th:value="'D'+${demand.demandNumber}">
						</div>
					</div>
					<div th:if="${person}">
						<div class="form-group">
							<label>专家ID</label> 
							<input type="hidden" name="expertNumber" th:value="${person.pid}" /> 
							<input type="text" class="form-control" placeholder="Enter ..." 
							       name="expertId" th:value="'E'+${person.expertNumber}">
						</div>
					</div>
					<div class="form-group">
						<label>对接状态</label> 
						<select class="form-control" name="buttStatus">
							<option th:each="psd : ${buttStatus}" th:value="${psd.names}"
								    th:text="${psd.worth}">----</option>
						</select>
					</div>
				<div class="form-group">
						<label for="buttDetails">对接详情</label>
						<textarea class="form-control" name="buttDetails" th:placeholder="${details}" required></textarea>
					</div>	
					<div class="form-group">
						<label for="exampleInputFile">对接附件</label> 
						<input type="file" name="buttDetailsFiles" id="buttDetailsFiles">
					</div>
				
					<div class="form-group">
						<label>对接时间</label>
						<div class="input-group date">
							<div class="input-group-addon">
								<i class="fa fa-calendar"></i>
							</div>
							<input type="text" th:value="${de.buttDataTime}" class="form-control pull-right" id="datepicker" name="buttDataTime">
						</div>
					</div>

					<div class="box-footer">
						<a href="/person/findPersonList" class="btn btn-primary">返回主页面</a>
						<button type="submit" class="btn btn-primary">提交</button>
						<a th:href="@{/person/addDetailsView(pid=${de.pid})}" class="btn btn-primary">重置</a>
						<button type="button" class="btn btn-primary" onclick="window.history.go(-1)">返回上一级</button>
					</div>
				</form>
			</section>
		</div>

		<div th:replace="footer::html"></div>
		<div class="control-sidebar-bg"></div>
	</div>

	<div th:replace="bottom::html"></div>
</body>
</html>